<h4 style="font-size:20px;"><i style="font-size:24px;" class="fa fa-edit"></i> 精选评论</h4>
<?php foreach($evaluateList as $key => $vo){ ?>

    <div class="media" style="display:table; width:98%; padding:1%; background:#F0F0F0; margin:4px auto;">
      <div class="media-left" style="width:70px;">
        <a href="#">
          <img style="border-radius:50px; box-shadow:0 1px 2px #ccc;" class="media-object" data-src="holder.js/64x64" alt="64x64" src="<?php echo $vo['img_url'];?>" data-holder-rendered="true" style="width: 64px; height: 64px;">
        </a>
      </div>
      <div class="media-body" style="padding-right:12px;">
        <h4 class="media-heading"><span style="color:#555;"><?php echo $vo['nickname'];?></span>   &nbsp;&nbsp; <span style="color:#999; float:right; line-height:1.75em; font-weight:normal; font-size:10px;"><?php echo getEvaluateTime($vo['datetime']);?></span></h4>
        <p style="color:#666; font-size:12px;"><?php echo $vo['content'];?></p>
         <p style="color:#666; font-size:12px; text-align:right;" class="replyBox"><a data-toggle="modal" data-target="#myModal" onClick="insertEvaluateNewsReply(0, <?php echo $vo['id'];?>, '<?php echo $vo['nickname'];?>');" href="javascript:void(0);"><i class="fa fa-comment-o"></i> 回复</a>&nbsp;&nbsp;&nbsp;&nbsp;<a EvaluateId="<?php echo $vo['id'];?>" class="EvaluateZanBtn" href="javascript:void(0);"><i class="fa fa-thumbs-o-up"></i> 赞(<span id="EvaluateZanBox<?php echo $vo['id'];?>"><?php echo $vo['zan'];?></span>)</a></p>
        <div class="clearfix"></div>
        <?php foreach($vo['reply'] as $rk => $vk){?>
        
        <div class="media">
          
          <div class="media-body" style="width:100%; display:block; border-top:1px solid #FFFFFF; padding-top:5px;">
            <p style="line-height:1.5em;" data-toggle="modal" data-target="#myModal" onClick="insertEvaluateNewsReply(<?php echo $vk['id'];?>, <?php echo $vo['id'];?>, '<?php echo $vk['nickname'];?>');"><a href="javascript:void(0);">
            
            
            
            <?php if($vk['nickname'] != ''){ echo $vk['nickname'].'<span style="color:#666;">@</span>'.$vk['atnickname'].'：'; }?><span style="color:rgb(255, 151, 151);"><?php if($vk['user_id'] > 0){ echo '管理员：'; }?></span></a><?php echo $vk['content'];?></p>
            <p style="color:#999; font-size:10px; text-align:right;"><?php echo getEvaluateTime($vk['datetime']);?></p>
          </div>
        </div>
        <?php }?>
      </div>
    </div>

<?php }?>
<script>

$('.EvaluateZanBtn').each(function(index, element) {
    $(this).click(function(e) {
        $.post('<?php echo U('/Home/Ajax/EvaluateZan');?>', {'id':$(this).attr('EvaluateId')}, function(data){
			if(data.status == 1){
				$('#EvaluateZanBox'+$(element).attr('EvaluateId')).html(data.data);
			}else{
				error(data.info);
			}
			
		}, 'json');
    });
});
	
	</script>